<%@ page language="java" errorPage="/WEB-INF/common/exception.jsp" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>企业管理</title>
<script type="text/javascript" language="javascript" src="<c:url value='/js/ckeditor/ckeditor.js' />" charset=utf-8></script>
</head>
<body>
<div class="main">
    <div class="subTitle">
        <h2><strong>企业管理</strong></h2>
    </div>
	<h3 class="subBoxTitle mT5"><c:if test="${empty id}">添&nbsp;&nbsp;&nbsp;&nbsp;加</c:if><c:if test="${not empty id}">修&nbsp;&nbsp;&nbsp;&nbsp;改</c:if></h3>
<form name="form1" action="<c:url value='/admin/basic/job/save.jhtml' />" method="post" onsubmit="return Validator.Validate(this,3);">
	<div class="ntable_mid mT10" >
        <table width="100%" class="nt_table">
			<tr>
                <td width="80" class="gray" height="40" align="right" ><font color="red">*</font>企业：</td>
                <td>
                	<select name="vo.company.id" dataType="Require" msg="请输入所属企业">
			      		<option value="" <c:if test="${empty vo.company.id}">selected="selected"</c:if>>---请选择---</option>
				       	<c:forEach var="company" items="${companyList}">
				       		<option value="${company.id }" <c:if test="${vo.company.id==company.id}">selected="selected"</c:if>>${company.code }　|　${company.name }</option>
				       	</c:forEach>
			      	</select>
                </td>
                <td width="80" class="gray" height="40" align="right" ><font color="red">*</font>名称：</td>
                <td colspan="3"><input name="vo.name" type="text" class="ntext_01" value="${vo.name }" size="35" dataType="Require" msg="请输入姓名" /></td>
			</tr>
			<tr>
                <td width="80" class="gray" height="40" align="right" >性别：</td>
                <td>
                	<select name="vo.sex">
			      		<option value="" <c:if test="${empty vo.sex}">selected="selected"</c:if>>---请选择---</option>
				       	<c:forEach var="sex" items="${sexes}">
				       		<option value="${sex }" <c:if test="${vo.sex==sex}">selected="selected"</c:if>>${sex.text }</option>
				       	</c:forEach>
			      	</select>
                </td>
                <td width="80" class="gray" height="40" align="right" >工作经验：</td>
                <td>
                	<select name="vo.experience">
			      		<option value="" <c:if test="${empty vo.experience}">selected="selected"</c:if>>---请选择---</option>
				       	<c:forEach var="experience" items="${experiences}">
				       		<option value="${experience }" <c:if test="${vo.experience==experience}">selected="selected"</c:if>>${experience.text }</option>
				       	</c:forEach>
			      	</select>
                </td>
                <td width="80" class="gray" height="40" align="right" >年龄：</td>
                <td>
                	<select name="vo.age">
			      		<option value="" <c:if test="${empty vo.age}">selected="selected"</c:if>>---请选择---</option>
				       	<c:forEach var="age" items="${ages}">
				       		<option value="${age }" <c:if test="${vo.age==age}">selected="selected"</c:if>>${age.text }</option>
				       	</c:forEach>
			      	</select>
                </td>
			</tr>
			<tr>
                <td width="80" class="gray" height="40" align="right" >学历：</td>
                <td>
                	<select name="vo.degree">
			      		<option value="" <c:if test="${empty vo.degree}">selected="selected"</c:if>>---请选择---</option>
				       	<c:forEach var="degree" items="${degrees}">
				       		<option value="${degree }" <c:if test="${vo.degree==degree}">selected="selected"</c:if>>${degree.text }</option>
				       	</c:forEach>
			      	</select>
                </td>
                <td width="80" class="gray" height="40" align="right" >工作性质：</td>
                <td colspan="3">
                	<select name="vo.workType">
			      		<option value="" <c:if test="${empty vo.workType}">selected="selected"</c:if>>---请选择---</option>
				       	<c:forEach var="workType" items="${types}">
				       		<option value="${workType }" <c:if test="${vo.workType==workType}">selected="selected"</c:if>>${workType.text }</option>
				       	</c:forEach>
			      	</select>
                </td>
			</tr>
			<tr>
                <td class="gray" height="40" align="right" >要求：</td>
                <td colspan="5">
                	<textarea id="demand" name="vo.demand" rows="9" cols="100">${vo.caption }</textarea>
                	<script type="text/javascript">
					var _extraHeight=480;
					CKEDITOR.replace("demand", {
						toolbar : 'Simple',
						height : 480,
						kt_image : {
							uploadURL : "<c:url value='/ckeditor-upload/descImage.jhtml'/>",
							fileName  : "descImage"
						}
					});
					</script>
                </td>
            </tr>
			<tr>
                <td class="gray" height="40" align="right" >介绍：</td>
                <td colspan="5">
                	<textarea id="caption" name="vo.caption" rows="9" cols="100">${vo.caption }</textarea>
                	<script type="text/javascript">
					CKEDITOR.replace("caption", {
						toolbar : 'Simple',
						height : 480,
						kt_image : {
							uploadURL : "<c:url value='/ckeditor-upload/descImage.jhtml'/>",
							fileName  : "descImage"
						}
					});
					</script>
                </td>
            </tr>
        </table>
    </div>
    
	<div class="nbot_control mT10">
		<input type="hidden" name="vo.id" value="${id}" />
        <input id="save" type="submit" class="formBtn01" value="保 存" />&nbsp;&nbsp;&nbsp;&nbsp;
		<input id="back" type="button" class="formBtn02" value="返 回"  onclick="location.href='<c:url value='/admin/basic/job/index.jhtml' />';" />
    </div>
</form>
</div>
</body>
</html>

